<style>
    .spin-cont { line-height: 35px; background-color: #ffffff; width: 700px; margin: 0 auto;}
    :focus{outline: none;}
    .buttonStyle{ width: 80px; height: 30px ;letter-spacing: 1px;}
</style>
<div id="main-content">
    <div id="main" class="main">
        <div class="user-hd">
            <h2>未结算明细>>{$page_title}</h2>
        </div>
            <div class="spin-cont">
               <div>影院名称：   {$inf.cinema_name}</div>
                <div><input type="button" value="返回" onclick="goBack()" style="float: right;position: relative;top: -35px;" class="buttonStyle"></div>
                <div>计费方式：{$inf.billing_video_play_type_word}</div>
                <div>幕数：{$inf.buy_hall_count} 幕</div>
                <if condition="$inf['agent_id'] GT 0">
                    <div>折扣率：<php>echo $inf['discount'] * 100 </php> %</div>
                </if>
                <div>结算时间：
                        {$inf.end_time|date='Y-m-d',###}
                </div>
                <div>未结算金额：<php>echo numFormat($inf['price']+$inf['video_play_price_total'],2,'.','')</php> 元</div>
                <div>结算明细：{$inf.formula} </div>
                <if condition="$inf['billing_video_play_type'] neq 1">
                    <div>点播明细</div>
                    <div>
                        <table>
                            <tr>
                                <th>影片名称</th>
                                <th>点播时间</th>
                                <th>点播时长</th>
                                <th>影片价格（元/部）</th>
                            </tr>
                            <volist name="inf['video_play_list']" id="vo">
                                <tr>
                                    <td>{$vo.video_name}</td>
                                    <td>{$vo.create_time|date='Y-m-d H:i:s',###}</td>
                                    <td>{$vo.play_time}</td>
                                    <td>{$vo.billing_cloud_price}</td>
                                </tr>
                            </volist>
                            <empty name="inf['video_play_list']">
                                <tr>
                                    <td colspan="4">没有内容...</td>
                                </tr>
                            </empty>
                            <notempty name="inf['page']">
                                <tr>
                                    <td colspan="4">
                                        <div class="page txt-center">
                                            {$inf.page}
                                        </div>
                                    </td>
                                </tr>
                            </notempty>
                        </table>
                    </div>
                </if>
            </div>
    </div>
</div>
<script>
    function goBack(){
       var url="{:U('cinemaBalance')}"+'?fid='+"{$inf.fid}";
        window.open(url,'_self');
    }
</script>